/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Education Level</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * vocSet: T19175 (C-0-T19175-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getEducationLevel()
 * @model extendedMetaData="name='EducationLevel'"
 * @generated
 */
public enum EducationLevel implements Enumerator {
	/**
	 * The '<em><b>ASSOC</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #ASSOC_VALUE
	 * @generated
	 * @ordered
	 */
	ASSOC(0, "ASSOC", "ASSOC"),

	/**
	 * The '<em><b>BD</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #BD_VALUE
	 * @generated
	 * @ordered
	 */
	BD(1, "BD", "BD"),

	/**
	 * The '<em><b>POSTG</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #POSTG_VALUE
	 * @generated
	 * @ordered
	 */
	POSTG(2, "POSTG", "POSTG"),

	/**
	 * The '<em><b>ELEM</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #ELEM_VALUE
	 * @generated
	 * @ordered
	 */
	ELEM(3, "ELEM", "ELEM"),

	/**
	 * The '<em><b>GD</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #GD_VALUE
	 * @generated
	 * @ordered
	 */
	GD(4, "GD", "GD"),

	/**
	 * The '<em><b>HS</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #HS_VALUE
	 * @generated
	 * @ordered
	 */
	HS(5, "HS", "HS"),

	/**
	 * The '<em><b>SCOL</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #SCOL_VALUE
	 * @generated
	 * @ordered
	 */
	SCOL(6, "SCOL", "SCOL"),

	/**
	 * The '<em><b>PB</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #PB_VALUE
	 * @generated
	 * @ordered
	 */
	PB(7, "PB", "PB"),

	/**
	 * The '<em><b>SEC</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #SEC_VALUE
	 * @generated
	 * @ordered
	 */
	SEC(8, "SEC", "SEC");

	/**
	 * The '<em><b>ASSOC</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>ASSOC</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #ASSOC
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int ASSOC_VALUE = 0;

	/**
	 * The '<em><b>BD</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>BD</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #BD
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int BD_VALUE = 1;

	/**
	 * The '<em><b>POSTG</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>POSTG</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #POSTG
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int POSTG_VALUE = 2;

	/**
	 * The '<em><b>ELEM</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>ELEM</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #ELEM
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int ELEM_VALUE = 3;

	/**
	 * The '<em><b>GD</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>GD</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #GD
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int GD_VALUE = 4;

	/**
	 * The '<em><b>HS</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>HS</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #HS
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int HS_VALUE = 5;

	/**
	 * The '<em><b>SCOL</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>SCOL</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #SCOL
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int SCOL_VALUE = 6;

	/**
	 * The '<em><b>PB</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>PB</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #PB
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int PB_VALUE = 7;

	/**
	 * The '<em><b>SEC</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>SEC</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #SEC
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int SEC_VALUE = 8;

	/**
	 * An array of all the '<em><b>Education Level</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final EducationLevel[] VALUES_ARRAY =
		new EducationLevel[] {
			ASSOC,
			BD,
			POSTG,
			ELEM,
			GD,
			HS,
			SCOL,
			PB,
			SEC,
		};

	/**
	 * A public read-only list of all the '<em><b>Education Level</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<EducationLevel> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Education Level</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static EducationLevel get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			EducationLevel result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Education Level</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static EducationLevel getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			EducationLevel result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Education Level</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static EducationLevel get(int value) {
		switch (value) {
			case ASSOC_VALUE: return ASSOC;
			case BD_VALUE: return BD;
			case POSTG_VALUE: return POSTG;
			case ELEM_VALUE: return ELEM;
			case GD_VALUE: return GD;
			case HS_VALUE: return HS;
			case SCOL_VALUE: return SCOL;
			case PB_VALUE: return PB;
			case SEC_VALUE: return SEC;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EducationLevel(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //EducationLevel
